package com.jinke.api.modules.app.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

@Getter
public enum QueryTimeType {

    CREATE(1, "开始时间"),
    UPDATE(2, "更新时间"),
    ;

    @EnumValue
    private final int value;
    private final String desc;

    QueryTimeType(final int value, final String desc) {
        this.value = value;
        this.desc = desc;
    }

    @JsonValue
    public int getValue() {
        return this.value;
    }
}